package singleton.lazy;

/**
 * 线程不安全
 */
public class Singleton4 {
    private Singleton4(){}
    private static Singleton4 instance;

    public static Singleton4 getInstance() {
        if(null == instance){
            instance = new Singleton4();
        }
        return instance;
    }
}
